package com.qf.elk.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class TestController {

    @GetMapping("/log")
    public String log(){
        log.error("【ELK记录日志】  我是日志!!!!!!!ERROR!!!!!!!!!");
        log.info("【ELK记录日志】  我是日志!!!!!!!INFO!!!!!!!!!");
        return "OK!";
    }
}
